import request from "@/utils/request";

// 查询报销人员列表
export function listInvoiceExpensesUser(query) {
  return request({
    url: "/business/invoiceExpensesUser/list",
    method: "get",
    params: query,
  });
}

// 查询报销人员所有列表
export function listAllInvoiceExpensesUser(query) {
  return request({
    url: "/business/invoiceExpensesUser/listAll",
    method: "get",
    params: query,
  });
}

// 查询报销人员详细
export function getInvoiceExpensesUser(id) {
  return request({
    url: "/business/invoiceExpensesUser/getInfo/" + id,
    method: "get",
  });
}

// 新增报销人员
export function addInvoiceExpensesUser(data) {
  return request({
    url: "/business/invoiceExpensesUser/add",
    method: "post",
    data: data,
  });
}

// 修改报销人员
export function updateInvoiceExpensesUser(data) {
  return request({
    url: "/business/invoiceExpensesUser/edit",
    method: "post",
    data: data,
  });
}

// 删除报销人员
export function delInvoiceExpensesUser(id) {
  return request({
    url: "/business/invoiceExpensesUser/remove/" + id,
    method: "get",
  });
}

// 查重
export function checkUser(query) {
  return request({
    url: "/business/invoiceExpenses/check",
    method: "get",
    params: query,
  });
}
